package com.lcj.crawler;

import com.geccocrawler.gecco.annotation.*;
import com.geccocrawler.gecco.request.HttpRequest;
import com.geccocrawler.gecco.spider.HtmlBean;
import com.geccocrawler.gecco.spider.SpiderBean;

@Gecco(matchUrl = "https://www.zptong.com/jobs/jobs-show-{recruitId}-.htm", pipelines = { "saveZptRecruitPipeline" })
public class ZptRecruitPage implements HtmlBean, SpiderBean {
    @Request
    private HttpRequest request;

    @RequestParameter
    private String recruitId;

    @Text
    @HtmlField(cssPath = "div.job-info-detail > div:nth-child(2)")
    private String lowerEdu;

    @Text
    @HtmlField(cssPath = "div.c-right-block > ul > li:nth-child(2)")
    private String industryName;

    @Text
    @HtmlField(cssPath = "div.c-right-block > ul > li:nth-child(3)")
    private String persons;

    @Text
    @HtmlField(cssPath = "div.job-main > div.job-top > div.job-watch-info > div.add-time")
    private String recruitDate;

    public HttpRequest getRequest() {
        return request;
    }

    public void setRequest(HttpRequest request) {
        this.request = request;
    }

    public String getRecruitId() {
        return recruitId;
    }

    public void setRecruitId(String recruitId) {
        this.recruitId = recruitId;
    }

    public String getLowerEdu() {
        return lowerEdu;
    }

    public void setLowerEdu(String lowerEdu) {
        this.lowerEdu = lowerEdu;
    }

    public String getIndustryName() {
        return industryName;
    }

    public void setIndustryName(String industryName) {
        this.industryName = industryName;
    }

    public String getPersons() {
        return persons;
    }

    public void setPersons(String persons) {
        this.persons = persons;
    }

    public String getRecruitDate() {
        return recruitDate;
    }

    public void setRecruitDate(String recruitDate) {
        this.recruitDate = recruitDate;
    }
}
